package com.zmn.oms.common.dio.factory.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author sunlife
 * @date:2020/9/16 10:08 上午
 * description:
 */
@Data
@ToString(callSuper = true)
@ApiModel("厂商配件信息")
public class FactoryOrderWorkPartAddDIO implements Serializable {

    private static final long serialVersionUID = 5112667697640314423L;

    /**
     * 厂商id
     */
    @ApiModelProperty(value = "厂商id")
    private Integer factoryId;

    /**
     * 配件申请方式：1、后台添加、2、厂商添加、3、工程师申请
     */
    @ApiModelProperty(value = "配件申请方式", required = true)
    @NotNull(message = "配件申请方式不能为空")
    private Integer applyType;

    /**
     * 工单id
     */
    @ApiModelProperty(value = "工单id")
    private Long orderId;

    /**
     * 配件id
     */
    @ApiModelProperty(value = "配件id", required = true)
    @NotNull(message = "配件ID不能为空")
    private Integer partId;

    /**
     * 配件名称
     */
    @ApiModelProperty(value = "配件名称", required = true)
    @NotNull(message = "配件名称不能为空")
    private String partName;

    /**
     * 数量
     */
    @ApiModelProperty(value = "数量", required = true)
    @NotNull(message = "配件数量不能为空")
    private BigDecimal number;

    /**
     * 快递单号
     */
    @ApiModelProperty(value = "快递单号", required = true)
    @NotNull(message = "快递单号不能为空")
    private String expressCode;

    /**
     * 快递公司编码
     */
    @ApiModelProperty(value = "快递公司编码", required = true)
    @NotNull(message = "快递公司编码不能为空")
    private String expressCompanyCode;

    /**
     * 快递公司
     */
    @ApiModelProperty(value = "快递公司", required = true)
    @NotNull(message = "快递公司名称不能为空")
    private String expressCompany;


    /**
     * 1 寄给用户 2 寄给言而有信公司
     */
    @ApiModelProperty(value = "邮寄对象", required = true)
    @NotNull(message = "邮寄对象不能为空")
    private Integer postTarget;

    /**
     * 操作人
     */
    @ApiModelProperty(value = "操作人", required = true)
    @NotNull(message = "操作人不能为空")
    private String operator;
}
